﻿@{
    ViewBag.Title = "newindex";
}
@section scripts
{
    <script src="@Url.Content("~/Scripts/shared/share.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/shared/shown.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/Modular/GetItem.js")" type="text/javascript"></script>        
}

<form id="form1" method="post">
<div class="mini-toolbar" style="padding:2px;border-top:0;border-left:0;border-right:0;">                
    <table style="width:100%;">
        <tr>
            <td style="white-space:nowrap;">
                @Html.Partial("~/Views/Modular/SearchInfo.cshtml")
            </td>
            <td style="width:100%;">
                <span class="separator"></span>
                <a id="os1" class="mini-button" iconCls="icon-ok" onclick="onSelectOne" plain="true">选择</a>
                <a id="os2" class="mini-button" iconCls="icon-ok" onclick="onSelectedNodes" plain="true">选择</a>
                <span class="separator"></span>
                    <a class="mini-button" iconCls="icon-close" onclick="CloseWindow" plain="true">关闭</a>
            </td>
        </tr>
    </table>                
</div>
<div class="mini-splitter" style="width:100%;height:470px;">
    <div size="230" showcollapseButton="true">
        <div class="mini-fit">
            <ul id="tree2" class="mini-tree" url="" 
                style="width:100%;height:390px;" expandOnLoad="0" 
                textField="FName" idField="FItemID" parentField="FParentID"  showTreeIcon="true" resultAsTree="false">        
            </ul>
        </div>
    </div>
    <div showCollapseButton="true">
        <div id="datagrid1" class="mini-datagrid" style="width:480px;height:387px;" pageSize="10" idField="FItemID" 
             allowCellSelect="true" allowCellEdit="true"showColumnsMenu="true"
            borderStyle="border:0;" url="GetCorpItemList"
            allowCellSelect="true" allowCellEdit="true"showColumnsMenu="true"fitColumns="false"  
            onrowdblclick="onSelectOne" sortMode="client" onselectionchanged="onSelectoinChanged">
                <div property="columns">
                <div type="checkcolumn" >选行</div>
                <div type="indexcolumn" width="35" headerAlign="center" >序号</div>
                <div field="FItemID" width="80" visible = "false" headerAlign="center" >内码</div>             
                <div field="FNumber" width="120" allowSort="true" headerAlign="center" >编码</div>                                        
                <div field="FName" width="250" allowSort="true" headerAlign="center" >名称</div>   
            </div>
        </div>  
    </div>
</div>
<input name="FTableCode" class="mini-hidden" />
</form>

